package org.dromara.business.modules.merchant.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.business.modules.merchant.domain.BuMerchant;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 商户信息业务对象 bu_merchant
 *
 * @author ckk
 * @date 2025-11-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BuMerchant.class, reverseConvertGenerate = false)
public class BuMerchantBo extends BaseEntity {

    /**
     * 商户ID，自增主键
     */
    @NotNull(message = "商户ID，自增主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 商户名称
     */
    @NotBlank(message = "商户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String merchantName;

    /**
     * 社会信用代码，唯一标识
     */
    private String creditCode;

    /**
     * 商户分类
     */
    @NotBlank(message = "商户分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String merchantCategory;

    /**
     * 联系人
     */
    private String contactPerson;

    /**
     * 联系电话
     */
    private String contactPhone;

    /**
     * 状态：0-已审核，1-待审核
     */
    private Integer status;

    /**
     * 驳回原因
     */
    private String reason;


}
